package com.module.admin.Warpper;

import com.module.common.BaseControllerWarpper;
import com.module.common.factory.ConstantFactory;

import java.util.List;
import java.util.Map;

/**
 * Created by asus on 2018/7/1.
 */
public class ProductWarpper extends BaseControllerWarpper {
    public ProductWarpper(List<Map<String, Object>> list){
        super(list);
    }

    @Override
    protected void warpTheMap(Map<String, Object> map) {
        map.put("state", ConstantFactory.me().getGoodState((Integer) map.get("goods_state")));
    }
}
